﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>数据管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="MyraStudio" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="/assets/images/favicon.ico">



    <!-- App css -->
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/theme.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-table.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/step.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/transfer.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-editable.css" rel="stylesheet" type="text/css" />
    <style>
        .login-user {
            display: flex;
            color: #000;
            line-height: 30px;
        }

        .login-user input {
            /* height: 30px; */
            border-radius: 4px;
            margin: 0px 4px;
        }

        .login-user select {
            /* height: 30px; */
            border-radius: 4px;
            margin: 0px 4px;
            width: 20px;
        }

        .colStyle {
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
    </style>

</head>

<body>

    <!-- Begin page -->
    <div id="layout-wrapper">

        <div class="container-fluid" style="margin-top: 10px;">

            <!-- start page title -->

            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">

                            <h4 class="card-title">文件存储规则配置</h4>
                            <button type="button" class="btn btn-primary waves-effect waves-light"
                                onclick="createStorageRuleModel()">新增</button>
                            <br></br>

                            <table id="table_page" style="table-layout:fixed;">

                            </table>

                        </div> <!-- end card body-->
                    </div> <!-- end card -->
                </div><!-- end col-->
            </div>
            <!-- end row-->



        </div> <!-- container-fluid -->

    </div>
    <!-- END layout-wrapper -->

    <!-- Add model -->
    <div id="storageRuleModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="storageRuleModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">

                    <h4 class="modal-title" id="storageRuleModalLabel">新增文件存储规则</h4>
                </div>
                <!--模态框的主体内容-->

                <div class="layui-fluid">
                    <div class="layui-card">
                        <div class="layui-card-body" style="padding-top: 40px;">
                            <div class="layui-carousel" id="stepForm" lay-filter="stepForm" style="margin: 0 auto;">
                                <div carousel-item class="layui-form" lay-filter="storageRule">
                                    <div>
                                        <form class="layui-form"
                                            style="margin: 0 auto;max-width: 520px;padding-top: 40px;">
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">规则名称:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="name" placeholder="输入规则名称"
                                                        lay-verify="required" class="layui-input" required />
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">切片方法:</label>
                                                <div class="layui-input-block login-user">
                                                    <select id="dump_method_select" name="dump_method_select"
                                                        onkeypress="return (/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
                                                        lay-filter="dump_method_select" lay-verify="required">
                                                        <option value=""></option>
                                                        <option value="expired">时长(分钟)</option>
                                                        <option value="size">大小(GB)</option>
                                                    </select>
                                                    <input type="text" id="dump_method_cfg" name="dump_method_cfg"
                                                        placeholder="输入" lay-filter="dump_method_cfg"
                                                        lay-verify="required|number" class="layui-input" required />
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">存储路径:</label>
                                                <div class="layui-input-block login-user">
                                                    <select id="dump_path_select1" name="dump_path_select1"
                                                        lay-verify="required">
                                                        <option value="">空间选择</option>
                                                        <option value="空间1">空间1</option>
                                                        <option value="空间2">空间2</option>
                                                    </select>
                                                    <select id="dump_path_select2" name="dump_path_select2">
                                                        <option value="">类型选择</option>
                                                    </select>
                                                    <input type="text" name="dump_path" placeholder="输入数据保存位置"
                                                        class="layui-input" required />
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">自动备份路径:</label>
                                                <div class="layui-input-block login-user">
                                                    <select id="auto_backups_select1" name="auto_backups_select1"
                                                        lay-verify="required">
                                                        <option value="">空间选择</option>
                                                        <option value="空间1">空间1</option>
                                                        <option value="空间2">空间2</option>
                                                    </select>
                                                    <select id="auto_backups_select2" name="auto_backups_select2">
                                                        <option value="">类型选择</option>
                                                    </select>
                                                    <input type="text" name="auto_backups" placeholder="输入数据保存位置"
                                                        class="layui-input" required />
                                                </div>
                                            </div>

                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">有效时长:</label>
                                                <div class="layui-input-block login-user">
                                                    <input type="text" id="expired_value" name="expired_value"
                                                        placeholder="请输入" lay-filter="expired_value"
                                                        onkeypress="return (/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
                                                        lay-verify="required" class="layui-input" required />
                                                    <select id="expired_select" name="expired_select"
                                                        lay-verify="required" lay-filter="expired_select">
                                                        <option value="year">年</option>
                                                        <option value="month">月</option>
                                                        <option value="day">天</option>
                                                        <option value="hour">小时</option>
                                                        <option value="min">分钟</option>
                                                        <option value="FV">永久</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">最大空间容量:</label>
                                                <div class="layui-input-block  login-user">
                                                    <input type="text" name="maxsize_val" placeholder="请输入最大空间容量"
                                                        onkeypress="return (/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
                                                        lay-verify="required|number" class="layui-input" required />
                                                    <select id="maxsize_unit" name="maxsize_unit" lay-verify="required"
                                                        lay-filter="maxsize_unit">
                                                        <option value="TB">TB</option>
                                                        <option value="GB">GB</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">数据等级:</label>
                                                <div class="layui-input-block">
                                                    <select id="level" name="level" lay-verify="required">
                                                        <option value=""></option>
                                                        <option value="1">1</option>
                                                        <option value="2">2</option>
                                                        <option value="3">3</option>
                                                        <option value="4">4</option>
                                                        <option value="5" selected>5</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">文件前缀:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="file_prefix" placeholder="输入文件前缀(默认dat)"
                                                        value="dat" class="layui-input" required />
                                                </div>
                                            </div>

                                            <div class="layui-form-item" style="text-align: right">
                                                <div class="layui-input-block">
                                                    <button class="layui-btn" lay-submit lay-filter="formStep">
                                                        &emsp;下一步&emsp;
                                                    </button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                    <div>
                                        <div style="text-align: center;margin-top: 90px;">
                                            <i class="layui-icon layui-circle"
                                                style="color: white;font-size:30px;font-weight:bold;background: #52C41A;padding: 20px;line-height: 80px;">&#xe605;</i>
                                            <div style="font-size: 24px;color: #333;font-weight: 500;margin-top: 30px;">
                                                填写完成
                                            </div>
                                            <div style="text-align: center;margin-top: 50px;">
                                                <button class="layui-btn next">返回</button>
                                                <button class="layui-btn layui-btn-primary"
                                                    id="testSubmitBtn">录入</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--模态框的尾部内容-->

                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
        <!-- END model -->




        <!-- Overlay-->
        <div class="menu-overlay"></div>

        <script>
            var ipm = '[[${manageIp}]]';
        </script>
        <!-- jQuery  -->
        <script src="/assets/js/jquery.min.js"></script>
        <script src="/assets/js/bootstrap.bundle.min.js"></script>
        <script src="/assets/js/metismenu.min.js"></script>
        <script src="/assets/js/waves.js"></script>
        <script src="/assets/js/bootstrap-table.js"></script>
        <script src="/assets/js/bootstrap-table-zh-CN.js"></script>
        <script src="/assets/js/bootstrap-editable.js"></script>
        <script src="/assets/js/bootstrap-table-editable.js"></script>
        <script src="/assets/layui/layui.js"></script>
        <script src="/assets/js/step.js"></script>
        <script src="/assets/js/bootstrap-switch.min.js"></script>
        <!-- third party js -->

        <!-- third party js ends -->

        <!-- Datatables init -->
        <script src="/assets/pages/storage-rules-config-demo.js"></script>
        <script src="/assets/pages/arrowall.js"></script>

        <!-- App js -->
        <script src="/assets/js/theme.js"></script>



</body>

</html>